package com.tianlang.schedule;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.tianlang.service.IUserManager;

/**
 * 定时器
 * 
 * @author Administrator
 *
 */
@Component
public class Schedule {

	private static final Logger LOG = Logger.getLogger(Schedule.class);

	@Autowired
	IUserManager userManager;
	private boolean isRun = true;

	@Scheduled(fixedRate = 1000 * 60 * 60 * 1)
	public void scheduleRun() {
		if (isRun) {
			isRun = false;
			LOG.info("初始化完成.........");
		}
	}

}
